package com.joelemon.mockinfluxdbdata.mock;

import cn.hutool.core.date.DateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @Description: 运行观测
 * @Author: HJY
 * @Date: 2023/11/20
 */
@Data
public class VisableInfo {

    private Long taskId;

    private Boolean forceStop;

    // 运行到达时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private DateTime arriveTime;

    // 其实时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private DateTime beginTime;

    // 开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private DateTime startTime;

    // 结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private DateTime stopTime;

    // 插入条数
    private AtomicInteger insertNum = new AtomicInteger(0);
}
